package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.entity.CUsed;
import com.pojo.entity.SysUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("select * from sys_user where username = #{username}")
    SysUser findByName(String username);

    @Select("select id from sys_user")
    List<Long> findAllUserIds();

    @Select("")
    List<SysUser> findByUsernameIn(List<String> usernameList);


}
